package top.lilele.adminSystem.numEnum;

/**
 * 空间文件类型枚举
 *
 * @author lilele
 */
public enum SpaceTypeEnum {
    PROJECT_TYPE(1, "文件夹"),
    EXCEL_TYPE(2, "EXCEL");

    public static String getMessageByKeyId(Integer status) {
        SpaceTypeEnum[] spaceTypeEnums = values();
        for (SpaceTypeEnum item : spaceTypeEnums) {
            if (item.getType().equals(status)) {
                return item.getMessage();
            }
        }
        return null;
    }

    private Integer type;
    private String message;

    SpaceTypeEnum(Integer type, String message) {
        this.type = type;
        this.message = message;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
